export const sendRequest = <T>(
	config: OpenAPIConfig,
	options: ApiRequestOptions,
	http: HttpClient,
	url: string,
	body: any,
	formData: FormData | undefined,
	headers: HttpHeaders
): Observable<HttpResponse<T>> => {
	return http.request<T>(options.method, url, {
		headers,
		body: body ?? formData,
		withCredentials: config.WITH_CREDENTIALS,
		observe: 'response',
	});
};
